package model;

import java.time.LocalDateTime;

public class OrderModification {
    // 价格变化信息
    private double olfPrice;
    private double newPrice;
    private double priceDifference;
    private OrderStatus originalStatus;


    // 补充操作人字段



    //商品变化信息
    private String orderId;
    private String operatorId;
    private LocalDateTime modificationTime;
    private String ipAddress;
    private OrderModificationRequest.ModificationType modificationType;
    private Object modifiedAt;

    public double getOlfPrice() {
        return olfPrice;
    }

    public void setOlfPrice(double olfPrice) {
        this.olfPrice = olfPrice;
    }

    public double getNewPrice() {
        return newPrice;
    }

    public void setNewPrice(double newPrice) {
        this.newPrice = newPrice;
    }

    public double getPriceDifference() {
        return priceDifference;
    }

    public void setPriceDifference(double priceDifference) {
        this.priceDifference = priceDifference;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId;
    }

    public LocalDateTime getModificationTime() {
        return modificationTime;
    }

    public void setModificationTime(LocalDateTime modificationTime) {
        this.modificationTime = modificationTime;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public OrderModificationRequest.ModificationType getModificationType() {
        return modificationType;
    }

    public void setModificationType(OrderModificationRequest.ModificationType modificationType) {
        this.modificationType = modificationType;
    }

    public OrderModification(double olfPrice, double newPrice, double priceDifference, String orderId, String operatorId, LocalDateTime modificationTime, String ipAddress, OrderModificationRequest.ModificationType modificationType) {
        this.olfPrice = olfPrice;
        this.newPrice = newPrice;
        this.priceDifference = priceDifference;
        this.orderId = orderId;
        this.operatorId = operatorId;
        this.modificationTime = modificationTime;
        this.ipAddress = ipAddress;
        this.modificationType = modificationType;
    }



    public Object getModifiedAt() {
        return modifiedAt;
    }

    public void setModifiedAt(Object modifiedAt) {
        this.modifiedAt = modifiedAt;
    }

    public String getOperator() {
        return operatorId;
    }
    public OrderStatus getOriginalStatus() {
        return originalStatus;
    }

    public void setOriginalStatus(OrderStatus status) {
        this.originalStatus = status;
    }

    // 补全getOperator方法



}


